package com.wenhai.spring.annotation;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * Enable 模块驱动示例
 *
 * @author wenhai
 * @date 2020/9/10
 */
@EnableHelloWorld
public class EnableModuleDemo {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(EnableModuleDemo.class);
        String helloWorld = ctx.getBean("helloWorld", String.class);
        System.out.println(helloWorld);
        ctx.close();
    }
}
